<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"  %>
<%--
  ~ Copyright (c) 2017 22420103@QQ.COM 版权所有
  ~
  --%>

<div class="col-xs-12" style="margin-top:5px;">
	<table id="simple-table" class="table table-bordered table-hover">
		<thead>
			<tr>
				<th class="center">序号</th>
				<th class="center">充值用户ID</th>
				<th class="center">充值用户名</th>
				<th class="center">被充值用户ID</th>
				<th class="center">被充值用户名</th>
				<th class="center">充值金额</th>
				<th class="center">充值金币</th>
				<th class="center">充值来源</th>
				<th class="center">充值方式</th>
				<th class="center">充值时间</th>


			</tr>
		</thead>
		
		<tbody>
			<c:forEach items="${data}" var="item" varStatus="i">
		       <tr>
					<td class="center">
						${i.index + 1}
					</td>
				   <td class="center">${item.superiorUserId }</td>
				   <td class="center">${item.superiorName }</td>
				   <td class="center">${item.juniorUserId }</td>
				   <td class="center">${item.juniorName }</td>
				   <td class="center"><fmt:formatNumber value="${item.chargeMoney}" pattern="#0.00" />元</td>
				   <td class="center">${item.chargeCount }</td>
				   <td class="center">
						<c:choose>
							<c:when test="${item.sourceType == 0}">运营后台</c:when>
							<c:when test="${item.sourceType == 1}">微信代理</c:when>
							<c:when test="${item.sourceType == 2}">运营后台</c:when>
						</c:choose>
				   </td>
				   <td class="center">
					   <c:choose>
						   <c:when test="${item.opType == 0}">充值</c:when>
						   <c:when test="${item.opType == 1}">扣除</c:when>
					   </c:choose>
				   </td>
				   <td class="center">${item.createTime }</td>
				</tr>
		    </c:forEach>

			</tbody>
		</table>
		<%@include file="../paging.jsp" %>
</div>

